package com.example.ordersystem.mapper;

import com.example.ordersystem.model.Goods;
import com.example.ordersystem.model.PageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodMapper {

    Integer count();

    List<Goods> queryListBypage(PageRequest pageRequest);

    Integer addGood(@Param("good")Goods good);

    Integer deleteByGoodId(Integer id);
}
